-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: check destination address for SC wallets #2105
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…e into fs-1035/custom-dest-address-check
packages/arb-token-bridge-ui/src/components/TransferPanel/TransferPanel.tsx
Outdated
Show resolved
Hide resolved
...-token-bridge-ui/src/components/TransferPanel/CustomDestinationAddressConfirmationDialog.tsx
Outdated
Show resolved
Hide resolved
<div className="mb-4"> | ||
<p className="pb-2"> | ||
You are attempting to deposit funds to the same address{' '} | ||
{shortenAddress(destinationAddress)} on {networkName}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have a link to the address on the explorer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
isDepositMode && | ||
areSenderAndCustomDestinationAddressesEqual | ||
) { | ||
await confirmCustomDestinationAddressForSCWallets() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same on L626. Currently if user click on cancel or close, we proceed as if user click on confirm. We should check for the returned value here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
Closes FS-1035